<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Ad extends TimeModel
{

    protected function getOptions(): array
    {
        return [
            'name'       => "ad",
            'table'      => "",
            'deleteTime' => false,
        ];
    }

    public function type()
    {
        return $this->hasOne(AdType::class, 'id', 'type_id');
    }

}